Lid cuda kernel#2
Conversation
|
Thanks, but llama.cpp maintainers made it very clear that I should add CPU implementation first and implementation for other backends (CUDA etc) in separate following PRs, so I'm not going to include a CUDA implementation (mine, yours or any) in my current CPU lightning indexer PR branch. Sorry, but you can try later after it's merged. Wish your luck! |
|
This is such an amazing work The master fork of llama.cpp
Your work fixes all of them |
Got it - wishing you luck on them accepting your cpu indexer pr soon then! |
|
Report: works multi-GPU (2×3090, 1M ctx) — but Built Bench (all clean exits,
Flat decode 256K→1M reproduces. No kernel issues across the layer-split boundary. The finding: ggml_backend_cuda_buffer_type_alloc_buffer: allocating 398314.19 MiB on device 0: cudaMalloc failed: out of memory (256K ctx, ub2048.) Not multi-GPU-related — reproduced with Workaround: Two multi-GPU notes for the docs: the |
|
@jonearth Indeed I see weird things happening with multiple parallel sequences (while |
including: - llama.cpp master at 4f37f51 - PR ggml-org#24231 at 428831b - PR fairydreaming#2 by spencer-zaid at fbb92d2 (not incl. deepseek.cpp)
|
@spencer-zaid I've updated my CPU lightning indexer implementation in ggml-org#24231, hopefully it will be merged soon. Note that there were some API changes - scale factors parameters were removed and f16 mask parameter was added. I added some test-backend-ops tests in the CPU implementation so you can test your CUDA implementation with this and measure the performance. My CUDA implementation will follow: ggml-org#25545 but maybe yours if faster, I guess it's worth checking. |
Overview
Additional information
Testing: token-identical vs unfused path at short context, needle-in-haystack retrieval correct at 10/50/90% depth (256K) plus spot-checked at 512K/1M's 50% depth, TDR/driver-timeout stress-tested at true near-max depth (253,952 tokens) with no crash, measured prefill/decode across 256K/512K/1M
Performance/testing coming in comment from tester with a mixed 5 gpu setup
Performance (rtx 5090 + 9950x3d + 96gb ddr5 6200 cl30)
Requirements